User loginNavigation |
Pickler CombinatorsPickler Combinators, Andrew Kennedy 2004.
This is a very pretty functional pearl, which is both useful and illustrates some nice semantic principles. Sun's new JavaFX Script languageSun recently announced JavaFX Script, a new Java-based scripting language designed for use with Sun's nascent rich interactive application development platform, JavaFX. JavaFX Script is statically typed, but it seems heavily influenced by dynamic languages like Python and JavaScript. JavaFX Script provides an unusual declarative syntax intended to facilitate rapid interface development and it has some interesting features like support for first-class functions and Pythonic list comprehensions. The language also has some really unusual array manipulation operators that are somewhat thought provoking. Here are a few samples to consider:
var titleTracks =
select indexof track + 1 from album in albums,
track in album.tracks where track == album.title;
select n*n from n in [1..100];
function factors(n) {
return select i from i in [1..n/2] where n % i == 0;
}
x = [1,2,3];
insert 10 as first into x; // yields [10,1,2,3]
insert 6 after x[. == 2]; // yields [10,1,2,6,3]
You can also find some good examples of the declarative interface design syntax in Sun's JavaFX Script tutorial for Swing developers. -- Ryan Paul LC for kids (alligators, oh my!)(via Wadler) You can show it to the kids, or try to guess what each element in the game represents before reading the explanation at the end... "The language of the future is javascript"Raph Levien has posted an article The browser wars are once again upon us a few days ago to advogato, covering the current state of the landscape for client-side web programming, and ends by saying In any case, one thing seems clear, if surprising: the language of the future is JavaScript. Foundations Of Temporal Query Languages
Foundations Of Temporal Query Languages
by David Toman, 1995.
In recent years, there have been numerous proposals that introduce time into standard relational systems. Unfortunately, most of the attempts have been based on ad-hoc extensions of existing database systems and query languages, e.g., TQUEL and TSQL. Such extensions often create many problems, when precise semantics needs to be developed, if one exists at all. In a recent survey by J. Chomicki, a clean way of defining temporal databases based on logic was proposed. This methodology views temporal databases as multi-sorted, finitely representable first-order structures. Query languages then became formulas in suitable logics over the vocabulary of such structures. By Andris Birkmanis at 2007-05-09 10:33 | Logic/Declarative | login or register to post comments | other blogs | 5773 reads
The PLT Scheme weblogThe PLT Scheme folks now have a project blog. The Expression Problem RevisitedThe Expression Problem Revisited - Four new solutions using generics. Mads Torgersen. ECOOP'04.
Same issue, same department (Daimi, Aarhus), different approaches. Compared to the previous post, this paper is longer and thus perhaps easier to follow; the approach is more mainstream - and the code (in Java!) is downloadable. The expression problem, Scandinavian styleErik Ernst, The expression problem, Scandinavian style. MASPEGHI 2004.
MASPEGHI, in case you wonder, stands for MechAnisms for SPEcialization, Generalization and inHerItance. On the site you'll also find the presentation related to the paper. And oh, gbeta is here. I wonder what the Scala guys have to say about all this... PLAI in printShriram Krishnamurthi's excellent book, Programming Languages: Application and Interpretation (PLAI), long available in PDF form, is now available in paperback. There's also a paid download available, "in case you want to reward the author in kind". A free PDF of the latest version is still available, which "really is the entire book, with no strings attached." The book is now licensed under a Creative Commons license which allows it to be adapted ("remixed") to fit a course. Here's an overview of the book's approach:
By Anton van Straaten at 2007-05-06 01:17 | Misc Books | Teaching & Learning | 1 comment | other blogs | 12509 reads
Functional PearlsDon Stewart has collected (all?) the Functional Pearls from JFP, ICFP, and elsewhere onto http://www.haskell.org/haskellwiki/Research_papers/Functional_pearls. Most of the are available online and are linked to from here. If you know what a Functional Pearl is, then you will enjoy this page, if not, you are in for a treat. Finally, if you know where any of the offline ones are publically available on the internet, that would be useful (just update the page). |
Browse archives
Active forum topics |
Recent comments
2 weeks 3 days ago
2 weeks 4 days ago
2 weeks 5 days ago
2 weeks 5 days ago
3 weeks 3 days ago
3 weeks 3 days ago
3 weeks 3 days ago
6 weeks 4 days ago
7 weeks 2 days ago
7 weeks 3 days ago